package com.ten_4_4.hiring.company.po;

import java.text.SimpleDateFormat;
import java.util.Date;

public class PositionPo {
	private int id;
	private int companyId;

	private String name;
	private String duty;
	private String ability;
	private int salary1;
	private int salary2;
	private Date releaseTime;
	private int education;
	private int workTime1;  // 工作年限
	private int workTime2;
	
	//Extra
	private String company$name;
	private String company$email;
	private String company$phone;
	private String company$linkman;
	private String company$address;
	private int company$numbers;
	private String company$slogan;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCompanyId() {
		return companyId;
	}
	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDuty() {
		return duty;
	}
	public String getPartsDuty() {
		if(duty.length() > 70)
			return duty.substring(0, 70);
		return duty;
	}
	public void setDuty(String duty) {
		this.duty = duty;
	}
	public String getAbility() {
		return ability;
	}
	public void setAbility(String ability) {
		this.ability = ability;
	}
	public int getSalary1() {
		return salary1;
	}
	public void setSalary1(int salary1) {
		this.salary1 = salary1;
	}
	public int getSalary2() {
		return salary2;
	}
	public void setSalary2(int salary2) {
		this.salary2 = salary2;
	}
	public Date getReleaseTime() {
		return releaseTime;
	}
	public String getReleaseTimeStr() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(releaseTime);
	}
	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}
	public String getCompany$name() {
		return company$name;
	}
	public void setCompany$name(String company$name) {
		this.company$name = company$name;
	}
	public String getCompany$email() {
		return company$email;
	}
	public void setCompany$email(String company$email) {
		this.company$email = company$email;
	}
	public String getCompany$phone() {
		return company$phone;
	}
	public void setCompany$phone(String company$phone) {
		this.company$phone = company$phone;
	}
	public String getCompany$linkman() {
		return company$linkman;
	}
	public void setCompany$linkman(String company$linkman) {
		this.company$linkman = company$linkman;
	}
	public String getCompany$address() {
		return company$address;
	}
	public void setCompany$address(String company$address) {
		this.company$address = company$address;
	}
	public int getCompany$numbers() {
		return company$numbers;
	}
	public void setCompany$numbers(int company$numbers) {
		this.company$numbers = company$numbers;
	}
	public String getCompany$slogan() {
		return company$slogan;
	}
	public void setCompany$slogan(String company$slogan) {
		this.company$slogan = company$slogan;
	}

	public String getEducationStr() {
		if(education == 0) {
			return "专科";
		} else if(education == 1) {
			return "本科";
		}
		return "研究生";
	}
	public int getEducation() {
		return education;
	}
	public void setEducation(int education2) {
		this.education = education2;
	}
	public int getWorkTime1() {
		return workTime1;
	}
	public void setWorkTime1(int workTime1) {
		this.workTime1 = workTime1;
	}
	public int getWorkTime2() {
		return workTime2;
	}
	public void setWorkTime2(int workTime2) {
		this.workTime2 = workTime2;
		
	}	
	
}
